﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 订单商品明细
    /// </summary>
    [Serializable]
    public class OrderItems
    {
        // Internal member variables
        private string orderid;
        private int linenum; 
        private int quantity;
        private decimal unitprice; 
        private string productName;
        private string productId;

        public OrderItems() { }

        /// <summary>
        /// 构造函数,为指定属性初始化值
        /// </summary>
        public OrderItems(string orderid, int linenum, int quantity, decimal unitprice, string productName, string productId)
        {
            this.orderid = orderid;
            this.linenum = linenum;
            this.quantity = quantity;
            this.unitprice = unitprice;
            this.productId = productId;
            this.productName = productName;
        }

        /// <summary>
        /// 
        /// </summary>
        public string OrderId
        {
            set { orderid = value; }
            get { return orderid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int LineNum
        {
            set { linenum = value; }
            get { return linenum; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ProductId
        {
            set { productId = value; }
            get { return productId; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int Quantity
        {
            set { quantity = value; }
            get { return quantity; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal UnitPrice
        {
            set { unitprice = value; }
            get { return unitprice; }
        }

        public string ProductName
        {
            set { productName = value; }
            get { return productName; }
        } 
    }
}
